{%extends "base.html"%}
{%block body%}

{% if creating %}
<h2>Upload Problems</h2>
  <form action="/upload" method="post" enctype="multipart/form-data">
    <table>
      {{ upload_form.as_table }}
    </table>
    <input type="submit" value="upload" />
  </form>
<hr />
{% endif %}

<h2>{% if creating %}Add{% else %}Edit{% endif %} Problem</h2>
  <form action="" method="post">
  <table>
    {{ form.as_table  }}
  </table>
  <input type="submit" value="Save" />
</form>

{%endblock%}
